<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<link rel="SHORTCUT ICON" href="<?php echo Yii::app()->request->baseUrl; ?>/images/icon.png" />
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style-blue.css" media="print" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/mystyle.css" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.9.1.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<style>
	.m-maincontent{
		width: 1200px;
		margin:auto;
	}
	
	.breadcrumb{
	margin: 0px !important;
	}
/*	.main-container{
		width: auto;
		margin:auto;
		border: 1px solid silver;  
		margin-top: 10px; 
		display: block;
		position:relative;
	}
	*/
	
	
	#content{
	width: 100%;
	}
	
	.page-width{
		width: 1200px;
	}
	
	.navbar-inner{
	border-radius: 0px !important;
	}
	</style>
	<script>
	$(function(){
		$("#m-maincontent").attr("style","min-height:"+ ($(window).height() -150)+"px;");
	});
	</script>
</head>

<body>
	<?php require_once 'header.php'; ?>
	<?php require_once 'banner.php'; ?>
	<div class="m-maincontent" id="page">	
		<div id="mainmenu">
			<?php 
			if(Yii::app()->user->isGuest){
				require_once 'menu.php'; 
			}else{
				require_once 'menulogedin.php'; 
			}
			?>
		</div><!-- mainmenu -->
		<div class='main-container' style=''>
		<?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
				'links'=>$this->breadcrumbs,
			)); ?><!-- breadcrumbs -->
		<?php endif?>
		<div >
			<?php echo $content; ?>
		</div>
		</div>
	
	</div><!-- page -->
	<div style="width: 100%; float: left; margin-top: 5px;">
<?php require_once 'footer.php'; ?>
</div>
</body>
</html>
